package com.tangruitao.service.impl;

import com.tangruitao.bean.Requestt;

/**
 * 这个类的作者是13536
 * 开发日期:2021/12/30
 **/
public class Dispose {

    public static String doingYi(Requestt requestt){
        System.out.println("00000000000000000000000000000"+requestt);
        if(requestt.getSalay()<=5000){
            Magger magger = new Magger(requestt.getSalay());
            String doing = magger.doing();
            return doing;
        }else if(requestt.getSalay()<=10000){
            General general = new General(requestt.getSalay());
            String doing = general.doing();
            return doing;
        }else{
            Chairman chairman = new Chairman(requestt.getTime());
            String doing = chairman.doing();
            return doing;

        }

    }
}
